package cn.wolfcode.wolf2w.repository;

import cn.wolfcode.wolf2w.domain.Visitor;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface VisitorRepository extends MongoRepository<Visitor, String> {
    /**
     * 查询当前的用户访问列表
     * @param ownerId
     * @return
     */
    Visitor findByUid(String ownerId);
}
